Page({
  data: {
    house: null,
  },
  async onLoad({ id }) {
    console.log(id);
    const res = await wx.http({
      url: '/room/' + id
    })
    console.log(res);
    this.setData({
      house: res.data
    })
  },

  editHouse() {
    // console.log(this.data.house.id);
    wx.navigateTo({
      url: '/house_pkg/pages/form/index?id=' + this.data.house.id,
    })
  },
})
